import { NgModule} from '@angular/core';
import { FormsModule,ReactiveFormsModule} from '@angular/forms';
import { CommonModule } from '@angular/common';
import { LayoutComponent } from './components/layout/layout.component';
import { TemplateComponent } from './components/template/template.component';
import { FormComponent } from "./components/form/form.component"
import { BlockDirective } from '../directives/block.directive';
import { SummaryPipe } from '../pipes/summary.pipe';
import { PersonComponent } from '../components/person/person.component';
import { LifecycleComponent } from '../components/lifecycle/lifecycle.component';
import { HttpClientModule } from '@angular/common/http';
import { TiButtonModule } from '@opentiny/ng-button';
import { TiTableModule } from '@opentiny/ng-table';
import { TiPaginationModule } from '@opentiny/ng-pagination';
import { TiSearchboxModule } from '@opentiny/ng-searchbox';
// 共享模块 ng g m seared
@NgModule({
  declarations: [
    LayoutComponent,
    TemplateComponent,
    BlockDirective,
    SummaryPipe,
    PersonComponent,
    LifecycleComponent,
    FormComponent
  ],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    TiButtonModule,
    TiTableModule,
    TiPaginationModule,
    TiSearchboxModule
  ],
  // 导出模块
  exports:[
    LayoutComponent,
    TemplateComponent,
    FormComponent
  ]
})
export class SharedModule { }
